package com.ocom.common.entity.payconfig;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ocom.common.vo.payconfig.GetDishesPriceInfoListVo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * voucher_data
 * @author 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "mqtt_device")
public class EntityMqttDevice implements Serializable {
    private static final long serialVersionUID = -5372389575246682585L;
    /**
     * 主键自增
     */
    @TableId(value = "mqtt_device_id", type = IdType.AUTO)
    private Long mqttDeviceId;

    private String mqttDeviceNo;

    private Integer mqttDeviceType;
    private String mqttDeviceModel;
    private String mqttDeviceName;
    private Integer pointId;
    private Integer dishesClassId;
    private Long comId;
    private Integer merchId;
    private Integer deviceStatus;
    private Integer errStatus;
    private Boolean online;
    private String remark;

    private Integer orderStatus;

    private Date orderTime;

    private Integer orderId;

//    @TableField("`sub_run`")
    private Integer subRun;

    private Integer subNum;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    private Date commTime;

    /**
     * 生成时间，计划日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间，最后使用日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    @TableField(exist = false)
    private Map<String,GetDishesPriceInfoListVo> dishesList;

}